@import "src/styles/global";

$search-height: 47px;
$hide-btn-width: $search-height / 3 * 2;

.navItemBox {
  text-align: center;
}

.searchBox {
  width: $search-height;
  height: $search-height;
  transition: all .5s;
  position: absolute;
  right: 0;
  top: 0;

  button {
    float: right;
    cursor: pointer;
    width: $search-height;
    height: $search-height;
    box-sizing: content-box;
    padding: 0;
    font-size: 18px;
    outline: none;
    border: none;
    transition: all .5s;

    &:hover{
      color: white;
      background-color: #5aa6e2;
    }
  }

  .hideBtn{
    display: block;
    float: left;
    width: $hide-btn-width;
    background-color: rgba(152, 118, 31, 0.1);
    font-size: 15px;
  }

  .searchInput{
    height: $search-height;
    background-color: #e7e9ea;
    float: right;
    opacity: 1;
    width: 70%;
    transition: all .5s;

    input {
      width: calc(100% - #{$hide-btn-width});
      height: $search-height;
      color: #265e80;
      padding: 0 10px;
      border: none;
      outline: none;
      background-color: transparent;
      transition: all .5s;
    }
  }

  .hidden{
    display: none;
  }

  .hiddenSearchInput{
    opacity: 0;
    width: 0;
  }
}

.searchBarShow {
  transition: all .5s;
  width: 100%;
}

.navSearch {
  position: absolute;
  right: 0;
  top: 0;
}
